# Contributor: psykose <alice@ayaya.dev>
# Maintainer: psykose <alice@ayaya.dev>
pkgname=trunk-recorder
pkgver=4.3.2
pkgrel=5
pkgdesc="Records calls from a Trunked Radio System (P25 & SmartNet)"
url="https://github.com/robotastic/trunk-recorder"
options="!check" # no tests
arch="aarch64 x86_64" # blocked by gnuradio
license="GPL-3.0-only"
makedepends="
	cmake
	curl-dev
	grpc-dev
	gr-osmosdr-dev
	libvolk-dev
	openssl-dev
	protobuf-dev
	samurai
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/robotastic/trunk-recorder/archive/v$pkgver.tar.gz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_LIBDIR=/usr/lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
9cb08612493e915b1b9378ef13e1c1aba30a5184207bc73069bff4d97c350766c314cfb1576cbb6d1741500f5adeacd6533f2f1a45ddef9fd19af8ebb9f701e5  trunk-recorder-4.3.2.tar.gz
"
